package com.service.Impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mapper.PermissionsMapper;
import com.pojo.Permissions;
import com.pojo.UserRoles;
import com.pojo.Users;
import com.service.PermissionsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class PermissionsServiceImpl extends ServiceImpl<PermissionsMapper, Permissions> implements PermissionsService {

    @Override
    public List<Permissions> getPermissionsByUserId(long userId) {
        List<Permissions> permissionsList=baseMapper.getPermissionIdsByUserId(userId);
        return permissionsList;
    }
}
